<?php

/**
 * @package Framework03
 * @author Walter Tamboer
 */

/**
 * A user session.
 */
class Session
{
	/**
	 * @var int The ID of this session.
	 */
	private $ID;
	/**
	 * @var string The name of this session.
	 */
	private $Name;
	/**
	 * @var mixed The data of this session.
	 */
	private $Data;
	/**
	 * Gets the ID of this session.
	 * @return int Returns an integer with the ID of this session.
	 */
	public function GetID()
	{
		return $this->ID;
	}
	/**
	 * Sets the ID of this session.
	 * @param int $Value The new value to set.
	 */
	public function SetID($Value)
	{
		$this->ID = $Value;
	}
	/**
	 * Gets the name of this session.
	 * @return string Returns a string with the name of this session.
	 */
	public function GetName()
	{
		return $this->Name;
	}
	/**
	 * Sets the name of this session.
	 * @param string $Value The new value to set.
	 */
	public function SetName($Value)
	{
		$this->Name = $Value;
	}
	/**
	 * Gets the data of this session.
	 * @return mixed Returns a mixed value with the data of this session.
	 */
	public function GetData()
	{
		return $this->Data;
	}
	/**
	 * Sets the data of this session.
	 * @param mixed $Value The new value to set.
	 */
	public function SetData($Value)
	{
		$this->Data = $Value;
	}
	/**
	 * Convert this session to a string.
	 * @return string Returns a string which will represent this session.
	 */
	public function __toString()
	{
		return '[ID: ' . $this->ID . ' Name: ' . $this->Name . ' Data: ' . $this->Data . ']';
	}
}

?>